<template>
  <div class="product">
    <h3>标题：{{ menu.proname }}</h3>
    <p>价格:{{ menu.proprice }}</p>
    <p>描述: {{ menu.desc }}<button @click="fn">砍一刀</button></p>
    <br />
  </div>
</template>

<script>
export default {
  name: 'SonComponent',
  props: ['menu'],
  methods: {
    fn() {
      this.$emit('Lowprice', this.menu.id, 100)
    },
  },
}
</script>

<style lang="less" scoped>
.product {
  width: 400px;
  border: 3px solid #000;
  border-radius: 5px;
  margin: 10px;
  padding: 0 20px;
}
</style>
